package com.yun.test.circularDependency;

import com.yun.test.circularDependency.generalProcess.MyCondition;
import com.yun.test.circularDependency.generalProcess.bean.ConditionBean;
import com.yun.test.circularDependency.generalProcess.bean.MyBean;
import org.springframework.context.annotation.*;

/**
 * @Author: fxy
 * @Date: 2022/11/15/16:01
 * @Description:
 */
@Configuration
@ComponentScan({"com.yun.test.circularDependency"})
@EnableAspectJAutoProxy
public class CircularDependencyConfig {
	@Bean(initMethod = "init")
	public MyBean myBean() {
		return new MyBean();
	}

	@Bean
	@Conditional(MyCondition.class)
	public ConditionBean conditionBean(){
		return new ConditionBean();
	}

}
